import request from '../../utils/request'
const API_NAME = '/admin/product/baseTrademark'


export default {
 
   //获取品牌列表数据
    getList(page, limit) {
        return request.get(`${API_NAME}/${page}/${limit}`)
    },

    //添加品牌
    add (trademark) {
        return request.post(`${API_NAME}/save`, trademark)
      },

    //修改品牌
    update (trademark) {
        return request.put(`${API_NAME}/update`, trademark)
      },

    //删除品牌
    remove(id) {
        return request.delete(`${API_NAME}/remove/${id}`)
      },

    //根据id获取品牌信息
    getInfo(id){
        return request.get(`${API_NAME}/get`, id)
    }
}